﻿/*
 * 文件名称：
 * 程序员：huangsb
 * 创建时间：2008/05/10
 * 
 * 功能说明：操作提示页
 * 
 * 修改人员：
 * 
 * 修改日期：
 * 
 * 修改记录：
 */

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Whir.Common;

public partial class Whir_System_messagepage : System.Web.UI.Page
{
    protected string id = "";
    protected string url = "";

    protected void Page_Load(object sender, EventArgs e)
    {
        this.id = Whir.Common.WebHelper.NetRequest.SafeRequest(Page, "id");
        this.url = Whir.Common.WebHelper.NetRequest.GetString("url");
        if (!IsPostBack)
        {
            setData();
        }
    }

    protected void setData()
    {

        Whir.Log.Model.Whir_OperateLog model = new Whir.Log.SQLServerDAL.Whir_OperateLog().GetModel(int.Parse(this.id));

        //string result = (model.operateResult) ? "操作成功" : "操作失败";
        string message = model.title;// +result;
        if (string.IsNullOrEmpty(url))
            url = Settings.GetSystemPath() + "Whir_System/Default.aspx";
        PageHelper.WriteMessage(Page, message, model.operateResult ? MessageType.Information : MessageType.Error, url);
    }
}